<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="noticeList.title"/></title>
    <meta name="menu" content="NoticeMenu"/>
</head>

<c:if test="{'$'}{not empty searchError}">
    <div class="alert alert-danger alert-dismissable">
        <a href="#" data-dismiss="alert" class="close">&times;</a>
        <c:out value="{'$'}{searchError}"/>
    </div>
</c:if>
<section class="content-header">
    <h1>
        <fmt:message key="noticeList.heading"/>
        <small><p><fmt:message key="noticeList.message"/></p></small>
    </h1>
</section>
<!-- Main content -->
<section class="content">
    <div class="row">
        <div class="col-xs-12">
            <%@ include file="/common/messages.jsp" %>
            <div class="box">
                <div class="box-header">
                    <%--<h3 class="box-title"> <fmt:message key="dealerList.heading"/></h3>--%>

                </div><!-- /.box-header -->
                <div class="box-body table-responsive">
<div id="actions" class="btn-group">
    <a href='<c:url value="/noticeform"/>' class="btn btn-primary">
        <i class="icon-plus icon-white"></i> <fmt:message key="button.add"/></a>
    <a href='<c:url value="/home"/>' class="btn btn-default"><i class="icon-ok"></i> <fmt:message key="button.done"/></a>
</div>

<display:table name="noticeList" class="table table-condensed table-striped table-hover" requestURI="" id="noticeList" export="true" pagesize="25">
    <display:column property="id" sortable="true" href="noticeform" media="html"
        paramId="id" paramProperty="id" titleKey="notice.id"/>
    <display:column property="id" media="csv excel xml pdf" titleKey="notice.id"/>
    <display:column property="content" sortable="true" titleKey="notice.content"/>
    <display:column sortProperty="date" sortable="true" titleKey="notice.date">
         <fmt:formatDate value="${noticeList.date}" pattern="${datePattern}"/>
    </display:column>

    <display:setProperty name="paging.banner.item_name"><fmt:message key="noticeList.notice"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="noticeList.notices"/></display:setProperty>

    <display:setProperty name="export.excel.filename"><fmt:message key="noticeList.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="noticeList.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="noticeList.title"/>.pdf</display:setProperty>
</display:table>
</div>
                </div>
            </div>
        </div>
    </section>